﻿<%@ Page Title="" Language="C#" MasterPageFile="~/adm/Admin.Master" AutoEventWireup="true" CodeBehind="StudentsXL.aspx.cs" Inherits="InstituteManager.adm.StudentsXL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h3>Student</h3>
	
    <asp:Panel ID="pnlMessage" runat="server" CssClass="informasi" Visible="False">
        <asp:Label ID="lblMessage" runat="server" Text="Message"></asp:Label>
    </asp:Panel>


    <asp:Panel ID="pnlView" runat="server" CssClass="clssdiv">
        
    <div style="margin-left:5%;margin-top:20px;">
            <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
            <asp:ImageButton ID="ibtSearch" runat="server" CssClass="search"
                ImageUrl="~/images/icons/google_custom_search.png" ToolTip="Search" 
                onclick="ibtSearch_Click" />
        </div>
    
        <asp:GridView ID="grvView" runat="server" CssClass="data" 
            AutoGenerateColumns="False" EnableModelValidation="True" 
            onrowdatabound="grvView_RowDataBound" AllowPaging="True" 
            onpageindexchanging="grvView_PageIndexChanging" 
            onrowcommand="grvView_RowCommand" DataKeyNames="StudentId">
                <Columns>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <HeaderTemplate>
                            <asp:CheckBox ID="chkSelectAll" runat="server" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="StudentId" HeaderText="StudentId" 
                        Visible="False" />
                    <asp:BoundField DataField="StudentName" HeaderText="Student Name" />
                    <asp:BoundField DataField="DOB" HeaderText="Date of Birth" 
                        DataFormatString="{0:d}" />
                    <asp:BoundField DataField="StudentPhone" HeaderText="Student Phone" />
                    <asp:BoundField DataField="Email" HeaderText="Email" />
                    <asp:BoundField DataField="Username" HeaderText="Username" />
                    <asp:TemplateField HeaderText="Command">
                        <ItemTemplate>
                            <asp:ImageButton ID="ibtView" runat="server" AlternateText="View" CommandArgument='<%# DataBinder.Eval (Container.DataItem, "StudentId") %>'
                                CommandName="cmdView" ImageUrl="~/images/icons/eye.png" ToolTip="View" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="data" />
                <PagerSettings Mode="NumericFirstLast" PageButtonCount="5" />
                <PagerStyle HorizontalAlign="Center" Wrap="True" />
                <RowStyle CssClass="data" />
            </asp:GridView>
    </asp:Panel>
   <asp:Panel ID="pnlDetail" runat="server" Visible="False">
        <div class="control">
            <asp:LinkButton ID="lbtBackDetailT" runat="server" CssClass="back"  
                CausesValidation="False" onclick="lbtBackDetail_Click">Go Back</asp:LinkButton>

        </div>
                

		    <table width="95%" class="data">
            <tr><th>Data Name</th><th>&nbsp;Data</th></tr>

			    <tr><td width="125px"><b>Student Name</b></td><td> 
                    <asp:Label ID="lblStudentName" runat="server" Text=""></asp:Label>
                    </td></tr>
			    <tr><td><b>Date of Birth</b></td><td>
                    <asp:Label ID="lblDOB" runat="server" Text=""></asp:Label>
                    </td></tr>
                <tr><td><b>Address</b></td><td>
                    <asp:Label ID="lblAddress" runat="server" Text=""></asp:Label>
                    </td></tr>
			    <tr><td><b>Student Phone</b></td><td>
                    <asp:Label ID="lblPhone" runat="server" Text=""></asp:Label>
                    </td></tr>
                <tr><td><b>Email</b></td><td>
                    <asp:Label ID="lblEmail" runat="server" Text=""></asp:Label>
                    </td></tr>
                 <tr><td ><b>Username</b></td><td>
                     <asp:Label ID="lblUsername" runat="server" Text=""></asp:Label>
                    </td></tr>
			    </table>

        <div class="control">
            <asp:LinkButton ID="lbtBackDetailB" runat="server" CssClass="back" OnClick="lbtBackDetail_Click" CausesValidation="False">Go Back</asp:LinkButton>
        </div>
    </asp:Panel>
</asp:Content>
